﻿(function () {
    'use strict';
    var serviceId = 'pageLocatorSvc';
    angular.module('common').factory(serviceId, ['$location', '$rootScope', 'safeApply', pageLocatorSvc]);

    function pageLocatorSvc($location, $rootScope, safeApply) {
        return {
            goTo: function (strPageName) {
                safeApply($rootScope, function () {
                    $location.path(strPageName).replace();
                });
            }
        };
    }
})();
